selection.Selection.[Symbol.iterator]
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- selection
- Declared in
- Selection
- Package
- libtmux
- Source
- packages/libtmux/src/selection.ts
- [Symbol.iterator] ( ) IterableIterator<Model>
-
Iterate in tmux's own order.
Each call returns a fresh iterator, so a selection can be walked more than once: spread it and then loop it, and the second pass is not empty. This is what
for...of, spread and destructuring all go through.Examples
for (const window of snapshot.windows) window.name;[...snapshot.windows].length === snapshot.windows.length;
0 declared, 0 inherited